package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.app.CommunityMember;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface CommunityMemberMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommunityMember record);

    int insertSelective(CommunityMember record);

    CommunityMember selectByPrimaryKey(Long id);

    int delByUserId(Long userId);

    CommunityMember selectByUser(@Param("userId")Long userId,@Param("communityId")Long communityId);

    BigDecimal getBalanceByOperatorId(@Param("userId")Long userId,@Param("operatorId") Long operatorId);

    List<CommunityMember> getCommunityMembersByOperatorId(@Param("userId")Long userId,@Param("operatorId") Long operatorId);

    List<CommunityMember> balanceList(@Param("userId") Long userId,@Param("communityId")Long communityId);

    int updateByPrimaryKeySelective(CommunityMember record);

    int updateByPrimaryKey(CommunityMember record);

    int updateByTime(CommunityMember record);
}